package com.usian.mappers;

import com.usian.pojo.Dto;
import com.usian.pojo.Etc;
import com.usian.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends tk.mybatis.mapper.common.Mapper<User> {
@Select("select * from user  where  username=#{username} and psw=#{psw} and rid=#{rid}")
    User findOne(@Param("username") String username,@Param("psw") String psw,@Param("rid") Integer rid);
    @Select("select * from etc ")
    List<Etc> FindAll();
}
